package com.angel.health;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BuzBluetoothExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BuzBluetoothExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(Integer value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(Integer value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(Integer value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(Integer value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(Integer value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<Integer> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<Integer> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(Integer value1, Integer value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andSystolicIsNull() {
            addCriterion("systolic is null");
            return (Criteria) this;
        }

        public Criteria andSystolicIsNotNull() {
            addCriterion("systolic is not null");
            return (Criteria) this;
        }

        public Criteria andSystolicEqualTo(String value) {
            addCriterion("systolic =", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicNotEqualTo(String value) {
            addCriterion("systolic <>", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicGreaterThan(String value) {
            addCriterion("systolic >", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicGreaterThanOrEqualTo(String value) {
            addCriterion("systolic >=", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicLessThan(String value) {
            addCriterion("systolic <", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicLessThanOrEqualTo(String value) {
            addCriterion("systolic <=", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicLike(String value) {
            addCriterion("systolic like", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicNotLike(String value) {
            addCriterion("systolic not like", value, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicIn(List<String> values) {
            addCriterion("systolic in", values, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicNotIn(List<String> values) {
            addCriterion("systolic not in", values, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicBetween(String value1, String value2) {
            addCriterion("systolic between", value1, value2, "systolic");
            return (Criteria) this;
        }

        public Criteria andSystolicNotBetween(String value1, String value2) {
            addCriterion("systolic not between", value1, value2, "systolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicIsNull() {
            addCriterion("diastolic is null");
            return (Criteria) this;
        }

        public Criteria andDiastolicIsNotNull() {
            addCriterion("diastolic is not null");
            return (Criteria) this;
        }

        public Criteria andDiastolicEqualTo(String value) {
            addCriterion("diastolic =", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicNotEqualTo(String value) {
            addCriterion("diastolic <>", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicGreaterThan(String value) {
            addCriterion("diastolic >", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicGreaterThanOrEqualTo(String value) {
            addCriterion("diastolic >=", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicLessThan(String value) {
            addCriterion("diastolic <", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicLessThanOrEqualTo(String value) {
            addCriterion("diastolic <=", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicLike(String value) {
            addCriterion("diastolic like", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicNotLike(String value) {
            addCriterion("diastolic not like", value, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicIn(List<String> values) {
            addCriterion("diastolic in", values, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicNotIn(List<String> values) {
            addCriterion("diastolic not in", values, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicBetween(String value1, String value2) {
            addCriterion("diastolic between", value1, value2, "diastolic");
            return (Criteria) this;
        }

        public Criteria andDiastolicNotBetween(String value1, String value2) {
            addCriterion("diastolic not between", value1, value2, "diastolic");
            return (Criteria) this;
        }

        public Criteria andPulseIsNull() {
            addCriterion("pulse is null");
            return (Criteria) this;
        }

        public Criteria andPulseIsNotNull() {
            addCriterion("pulse is not null");
            return (Criteria) this;
        }

        public Criteria andPulseEqualTo(String value) {
            addCriterion("pulse =", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseNotEqualTo(String value) {
            addCriterion("pulse <>", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseGreaterThan(String value) {
            addCriterion("pulse >", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseGreaterThanOrEqualTo(String value) {
            addCriterion("pulse >=", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseLessThan(String value) {
            addCriterion("pulse <", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseLessThanOrEqualTo(String value) {
            addCriterion("pulse <=", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseLike(String value) {
            addCriterion("pulse like", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseNotLike(String value) {
            addCriterion("pulse not like", value, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseIn(List<String> values) {
            addCriterion("pulse in", values, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseNotIn(List<String> values) {
            addCriterion("pulse not in", values, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseBetween(String value1, String value2) {
            addCriterion("pulse between", value1, value2, "pulse");
            return (Criteria) this;
        }

        public Criteria andPulseNotBetween(String value1, String value2) {
            addCriterion("pulse not between", value1, value2, "pulse");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyIsNull() {
            addCriterion("heartAnomaly is null");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyIsNotNull() {
            addCriterion("heartAnomaly is not null");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyEqualTo(Integer value) {
            addCriterion("heartAnomaly =", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyNotEqualTo(Integer value) {
            addCriterion("heartAnomaly <>", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyGreaterThan(Integer value) {
            addCriterion("heartAnomaly >", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyGreaterThanOrEqualTo(Integer value) {
            addCriterion("heartAnomaly >=", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyLessThan(Integer value) {
            addCriterion("heartAnomaly <", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyLessThanOrEqualTo(Integer value) {
            addCriterion("heartAnomaly <=", value, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyIn(List<Integer> values) {
            addCriterion("heartAnomaly in", values, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyNotIn(List<Integer> values) {
            addCriterion("heartAnomaly not in", values, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyBetween(Integer value1, Integer value2) {
            addCriterion("heartAnomaly between", value1, value2, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHeartanomalyNotBetween(Integer value1, Integer value2) {
            addCriterion("heartAnomaly not between", value1, value2, "heartanomaly");
            return (Criteria) this;
        }

        public Criteria andHistoryIsNull() {
            addCriterion("history is null");
            return (Criteria) this;
        }

        public Criteria andHistoryIsNotNull() {
            addCriterion("history is not null");
            return (Criteria) this;
        }

        public Criteria andHistoryEqualTo(Integer value) {
            addCriterion("history =", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryNotEqualTo(Integer value) {
            addCriterion("history <>", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryGreaterThan(Integer value) {
            addCriterion("history >", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("history >=", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryLessThan(Integer value) {
            addCriterion("history <", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryLessThanOrEqualTo(Integer value) {
            addCriterion("history <=", value, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryIn(List<Integer> values) {
            addCriterion("history in", values, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryNotIn(List<Integer> values) {
            addCriterion("history not in", values, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryBetween(Integer value1, Integer value2) {
            addCriterion("history between", value1, value2, "history");
            return (Criteria) this;
        }

        public Criteria andHistoryNotBetween(Integer value1, Integer value2) {
            addCriterion("history not between", value1, value2, "history");
            return (Criteria) this;
        }

        public Criteria andTimeperiodIsNull() {
            addCriterion("timePeriod is null");
            return (Criteria) this;
        }

        public Criteria andTimeperiodIsNotNull() {
            addCriterion("timePeriod is not null");
            return (Criteria) this;
        }

        public Criteria andTimeperiodEqualTo(Integer value) {
            addCriterion("timePeriod =", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodNotEqualTo(Integer value) {
            addCriterion("timePeriod <>", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodGreaterThan(Integer value) {
            addCriterion("timePeriod >", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodGreaterThanOrEqualTo(Integer value) {
            addCriterion("timePeriod >=", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodLessThan(Integer value) {
            addCriterion("timePeriod <", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodLessThanOrEqualTo(Integer value) {
            addCriterion("timePeriod <=", value, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodIn(List<Integer> values) {
            addCriterion("timePeriod in", values, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodNotIn(List<Integer> values) {
            addCriterion("timePeriod not in", values, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodBetween(Integer value1, Integer value2) {
            addCriterion("timePeriod between", value1, value2, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andTimeperiodNotBetween(Integer value1, Integer value2) {
            addCriterion("timePeriod not between", value1, value2, "timeperiod");
            return (Criteria) this;
        }

        public Criteria andBsIsNull() {
            addCriterion("bs is null");
            return (Criteria) this;
        }

        public Criteria andBsIsNotNull() {
            addCriterion("bs is not null");
            return (Criteria) this;
        }

        public Criteria andBsEqualTo(String value) {
            addCriterion("bs =", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsNotEqualTo(String value) {
            addCriterion("bs <>", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsGreaterThan(String value) {
            addCriterion("bs >", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsGreaterThanOrEqualTo(String value) {
            addCriterion("bs >=", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsLessThan(String value) {
            addCriterion("bs <", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsLessThanOrEqualTo(String value) {
            addCriterion("bs <=", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsLike(String value) {
            addCriterion("bs like", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsNotLike(String value) {
            addCriterion("bs not like", value, "bs");
            return (Criteria) this;
        }

        public Criteria andBsIn(List<String> values) {
            addCriterion("bs in", values, "bs");
            return (Criteria) this;
        }

        public Criteria andBsNotIn(List<String> values) {
            addCriterion("bs not in", values, "bs");
            return (Criteria) this;
        }

        public Criteria andBsBetween(String value1, String value2) {
            addCriterion("bs between", value1, value2, "bs");
            return (Criteria) this;
        }

        public Criteria andBsNotBetween(String value1, String value2) {
            addCriterion("bs not between", value1, value2, "bs");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeIsNull() {
            addCriterion("measure_time is null");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeIsNotNull() {
            addCriterion("measure_time is not null");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeEqualTo(String value) {
            addCriterion("measure_time =", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeNotEqualTo(String value) {
            addCriterion("measure_time <>", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeGreaterThan(String value) {
            addCriterion("measure_time >", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeGreaterThanOrEqualTo(String value) {
            addCriterion("measure_time >=", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeLessThan(String value) {
            addCriterion("measure_time <", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeLessThanOrEqualTo(String value) {
            addCriterion("measure_time <=", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeLike(String value) {
            addCriterion("measure_time like", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeNotLike(String value) {
            addCriterion("measure_time not like", value, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeIn(List<String> values) {
            addCriterion("measure_time in", values, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeNotIn(List<String> values) {
            addCriterion("measure_time not in", values, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeBetween(String value1, String value2) {
            addCriterion("measure_time between", value1, value2, "measureTime");
            return (Criteria) this;
        }

        public Criteria andMeasureTimeNotBetween(String value1, String value2) {
            addCriterion("measure_time not between", value1, value2, "measureTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}